﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Directora.Master" AutoEventWireup="true" CodeBehind="CrearPrograma.aspx.cs" Inherits="Interfaces.Programa.CrearPrograma" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style19
        {
            width: 296px;
            text-align: left;
        }
        .style21
        {
            width: 90px;
            text-align: left;
        }
        .style22
        {
            text-align: left;
        }
        .style23
        {
            width: 168px;
        }
        .style22
        {
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <p>
        </p>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                        <asp:View ID="View1" runat="server">
                            <asp:Panel ID="Panel1" runat="server">
                                <asp:Panel ID="Panel2" runat="server" GroupingText="Crear Programa" 
                                    style="text-align: center">
                                    <table style="width:100%;">
                                        <tr>
                                            <td class="style21">
                                                Nombre:</td>
                                            <td class="style19">
                                                <asp:TextBox ID="nombreTbx" runat="server" Height="21px" MaxLength="50" 
                                                    Width="203px"></asp:TextBox>
                                                <ajaxToolkit:TextBoxWatermarkExtender ID="nombreTbx_TextBoxWatermarkExtender" 
                                                    runat="server" TargetControlID="nombreTbx" 
                                                    WatermarkText="Ingrese el nombre del programa"></ajaxToolkit:TextBoxWatermarkExtender>
                                                <asp:Label ID="nomError" runat="server" ForeColor="Red" Text="*" 
                                                    Visible="False"></asp:Label>
                                            </td>
                                            <td style="text-align: left">
                                                Area:<asp:DropDownList 
                                                    ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" 
                                                    DataTextField="Area" DataValueField="Area">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                Fecha Inicio:
                                            </td>
                                            <td class="style19">
                                                <asp:TextBox ID="TextBox4" runat="server" Height="21px" MaxLength="10" 
                                                    Width="203px" Enabled="false"></asp:TextBox>
                                                <ajaxToolkit:CalendarExtender ID="TextBox4_CalendarExtender" runat="server" 
                                                    Enabled="True" Format="yyyy-MM-dd" PopupButtonID="ImageButton1" TargetControlID="TextBox4"></ajaxToolkit:CalendarExtender>
                                                <asp:ImageButton ID="ImageButton1" runat="server" 
                                                    ImageUrl="~/Images/calendar.jpg" />
                                                <asp:Label ID="iniError0" runat="server" ForeColor="Red" Text="*" 
                                                    Visible="False"></asp:Label>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                Fecha Fin:</td>
                                            <td class="style19">
                                                <asp:TextBox ID="TextBox5" runat="server" Height="21px" MaxLength="10" 
                                                    Width="203px" Enabled="false"></asp:TextBox>
                                                <ajaxToolkit:CalendarExtender ID="TextBox5_CalendarExtender" runat="server" 
                                                    Enabled="True" Format="yyyy-MM-dd" PopupButtonID="ImageButton2" TargetControlID="TextBox5"></ajaxToolkit:CalendarExtender>
                                                <asp:ImageButton ID="ImageButton2" runat="server" 
                                                    ImageUrl="~/Images/calendar.jpg" />
                                                <asp:Label ID="finError1" runat="server" ForeColor="Red" Text="*" 
                                                    Visible="False"></asp:Label>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </table>
                                    <br />
                                    <asp:Button ID="Button8" runat="server" onclick="Button1_Click" 
                                        Text="Asignar Directoras" Width="134px" CssClass=JCIstyle/>
                                    <asp:Panel ID="Panel4" runat="server" GroupingText="Directoras" 
                                        style="text-align: left">
                                        <table style="width:100%;">
                                            <tr>
                                                <td class="style22">
                                                    <asp:Label ID="dirLbl" runat="server" Text="Directora:" Visible="False"></asp:Label>
                                                </td>
                                                <td class="style22">
                                                    <asp:Label ID="nombre" runat="server"></asp:Label>
                                                    &nbsp;<asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
                                                        Text="Eliminar Directora" Visible="False" CssClass=JCIstyle />
                                                </td>
                                                <td class="style22">
                                                    <asp:Label ID="codLbl" runat="server" Text="Lista de Codirectoras:" 
                                                        Visible="False"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style22">
                                                    &nbsp;</td>
                                                <td class="style22">
                                                    &nbsp;</td>
                                                <td class="style22">
                                                    <asp:DataList ID="CodirectorasDataList" runat="server" 
                                                        onselectedindexchanged="Miembros_SelectedIndexChanged">
                                                        <HeaderTemplate>
                                                            <tr style="color: #000000">
                                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                                    <asp:Label ID="LabNombre0" runat="server">Nombre</asp:Label>
                                                                </td>
                                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                                    <asp:Label ID="Apellido0" runat="server">Apellido</asp:Label>
                                                                </td>
                                                                <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                                    &nbsp;<asp:Label ID="Cargo0" runat="server">Cargo</asp:Label>
                                                                </td>
                                                            </tr>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <tr style="color: #000000">
                                                                <td style="border:2px solid #123456;">
                                                                    <asp:Label ID="nombre0" runat="server" Text='<%# Eval("Nombre") %>'></asp:Label>
                                                                </td>
                                                                <td style="border:2px solid #123456;">
                                                                    <asp:Label ID="Apellido1" runat="server" Text='<%# Eval("ApellidoPaterno") %>'></asp:Label>
                                                                </td>
                                                                <td style="border:2px solid #123456;">
                                                                    <asp:Label ID="Cargo1" runat="server" Text='<% #Eval("Cargo")%>'></asp:Label>
                                                                </td>
                                                                <td style="border:2px solid #123456;">
                                                                    <asp:LinkButton ID="DireButn0" runat="server" 
                                                                        CommandArgument='<%#Eval("CI") %>' OnClick="Button6_Click">Eliminar</asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                        </ItemTemplate>
                                                    </asp:DataList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style22">
                                                    &nbsp;</td>
                                                <td class="style22">
                                                    &nbsp;</td>
                                                <td class="style22">
                                                    &nbsp;</td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <asp:Label ID="error" runat="server" ForeColor="Red"></asp:Label>
                                    <br />
                                    <asp:Button ID="Button9" runat="server" onclick="Button9_Click" 
                                        Text="Guardar Programa" CssClass=JCIstyle />
                                    <br />
                                    <br />
                                </asp:Panel>
                                <asp:Label ID="Label9" runat="server" Visible="false"></asp:Label>
                        <br />
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:jciDataBaseConnectionString %>" 
                                    SelectCommand="SELECT [Area] FROM [Area]"></asp:SqlDataSource>
                            </asp:Panel>
                        </asp:View>
                        <asp:View ID="View2" runat="server">
                    <br />
                            <asp:Panel ID="Panel3" runat="server" GroupingText="Buscar Miembro" 
                                style="text-align: center">
                                &nbsp;<asp:TextBox ID="TextBox6" runat="server" Height="21px" Width="206px"></asp:TextBox>
                                <ajaxToolkit:TextBoxWatermarkExtender ID="TextBox6_TextBoxWatermarkExtender" 
                                    runat="server" TargetControlID="TextBox6" 
                                    WatermarkText="Ingrese el nombre de la directora"></ajaxToolkit:TextBoxWatermarkExtender>
                                <asp:Button ID="BuscarBtn" runat="server" Text="Buscar" 
                                    onclick="BuscarBtn_Click" CssClass="JCIstyle"/>
                                <table style="width:100%;">
                                    <tr>
                                        <td class="style23">
                                        </td>
                                        <td>
                                            &nbsp;<asp:DataList ID="Miembros" runat="server" 
                                                onselectedindexchanged="Miembros_SelectedIndexChanged" 
                                                style="margin-left: 0px; text-align: left;" Width="582px">
                                                <HeaderTemplate>
                                                    <tr style="color: #000000">
                                                        <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                            <asp:Label ID="LabCI" runat="server">CI</asp:Label>
                                                        </td>
                                                        <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                            &nbsp;<asp:Label ID="LabNombre" runat="server">Nombre</asp:Label>
                                                        </td>
                                                        <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                            &nbsp;<asp:Label ID="Apellido" runat="server">Apellido</asp:Label>
                                                        </td>
                                                        <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                            &nbsp;<asp:Label ID="Cargo" runat="server">Cargo</asp:Label>
                                                        </td>
                                                        <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                            &nbsp;<asp:Label ID="Directora" runat="server">Directora</asp:Label>
                                                            &nbsp;</td>
                                                        <td bgcolor="#3a67b1" style="border:2px solid #123456;">
                                                            <asp:Label ID="Codirectora" runat="server">Codirectora</asp:Label>
                                                        </td>
                                                    </tr>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <tr style="color: #000000">
                                                        <td style="border:2px solid #123456;">
                                                            <asp:Label ID="CI" runat="server" Text='<%#Eval("CI") %>'></asp:Label>
                                                            &nbsp;</td>
                                                        <td style="border:2px solid #123456;">
                                                            <asp:Label ID="nombre" runat="server" Text='<%#Eval("Nombre")%>'></asp:Label>
                                                            &nbsp;</td>
                                                        <td style="border:2px solid #123456;">
                                                            <asp:Label ID="Apellido" runat="server" Text='<%#Eval("ApellidoPaterno") %>'></asp:Label>
                                                            &nbsp;</td>
                                                        <td style="border:2px solid #123456;">
                                                            <asp:Label ID="Cargo" runat="server" Text='<% #Eval("Cargo")%>'></asp:Label>
                                                            &nbsp;</td>
                                                        <td style="border:2px solid #123456;">
                                                            <asp:LinkButton ID="DireButn" runat="server" CommandArgument='<%#Eval("CI") %>' 
                                                                OnClick="DirectorBtn_Click">Directora</asp:LinkButton>
                                                            &nbsp;</td>
                                                        <td style="border:2px solid #123456;">
                                                            <asp:LinkButton ID="CodBtn" runat="server" CommandArgument='<%#Eval("CI") %>' 
                                                                OnClick="CodiBtn_Click">Codirectora</asp:LinkButton>
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:DataList>
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                                <asp:Label ID="errorLb" runat="server" ForeColor="Red"></asp:Label>
                                <br />
                                <asp:Button ID="Volver" runat="server" onclick="Volver_Click" 
                                    Text="Volver a Programa" CssClass="JCIstyle"/>
                        <br />
                            </asp:Panel>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <br />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <br />
                        </asp:View>
                <br />
                    </asp:MultiView>
                </ContentTemplate>
    </asp:UpdatePanel>
            <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
            </asp:ScriptManagerProxy>
    <p>
        <br />
    </p>
    </asp:Content>
